package com.the_last.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.the_last.pojo.po.Order;
import com.the_last.pojo.vo.OrderDetailVO;
import com.the_last.pojo.vo.OrderVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author zhanghaifeng
 * @description 针对表【order】的数据库操作Mapper
 * @createDate 2025-06-11 14:48:47
 * @Entity com.the_last.pojo.po.Order
 */
@Mapper
public interface OrderMapper extends BaseMapper<Order> {
    /**
     * 查询订单列表
     */
    IPage<OrderVO> selectOrderList(@Param("page") Page<OrderVO> page,
                                   @Param("userId") Long userId,
                                   @Param("status") String status);
    
    /**
     * 查询订单详情
     */
    OrderDetailVO selectOrderDetail(@Param("orderId") String orderId);
}




